<table summary="" id="pagehead" cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td><h1>系统下单</h1></td>
		<td class="actions">
			<table summary="" cellpadding="0" cellspacing="0" border="0" align="right">
				<tr>
                	<td class='active'><a href="#">选择客户</a></td>
					<td><a href="#">选择约货人</a></td>
					<td><a href="#">选择商品</a></td>
                    <td><a href="#">查看购物车</a></td>
                    <td><a href="#">确认下单</a></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<div class="edit_tab tab">
<div class="bg1">
<div class="bg2">
      <span rel="info" class="span_now">客户列表</span>
</div>
</div>
</div>
<form id='search' action="?">
<div class="search">
		 <span>客户名称：<input type="text" name="customer_name" id="customer_name" value="<?=$_GET['customer_name'];?>" class="input_5" /></span>
 		 <span>注册时间：<input rel="rili" class="input_5" value="<?=$_GET['start_date'];?>"  onclick="new Calendar(2011,2018).show(this)" type="text" readonly="readonly" name="start_date" /></span>
         <span>至：<input rel="rili" class="input_5" value="<?=$_GET['end_date'];?>" onclick="new Calendar(2011,2018).show(this)" type="text" readonly="readonly" name="end_date" /></span>

       
        <span>
        	<input name="" type="submit" value="搜索" class="btn1"/>
            <?php echo showhide(array('app'=>$_GET['app'],'mod'=>$_GET['mod'])); ?>
        </span>
</div>
</form>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table1">
       <tr>
            <th class="th0">编号</th>
            <th class="th1">客户名称</th>
            <th class="th1">注册时间</th>
            <th class="th1">下单数量</th>
            <th class="th0">操作</a>
       </tr>
       <?php foreach((array)$this->customers as $customer): ?> 
       <tr>
            <td><?=$customer['customer_id']; ?></td>
            <td><?=$customer['customer_name']; ?></td>
            <td><?=date('Y-m-d H:i',$customer['created_time']); ?></td>
            <td><?=$customer['ordersum'];?></td>
            <td><?=opt('order','?app=order&mod=systemsubmit&step=2&uid='.$customer['customer_id']); ?></td>
       </tr>
       <?php endforeach; ?>
</table>
<div class="page_num">
     <div class="fl">
        <span style="color:red">第一步：请选择客户由系统进行下单。</span>
     </div>
     <div class="fr">
        <p class="cpager">
            <?php echo $this->pager; ?>
        </p>
     </div>
</div>